/* class组件示例 */
import React from 'react';
class page001c01 extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      name: 'React',
    };
  }
  render() {
    // this.setState({name:'boxue'})
    return (
      <div>
        <h1>{this.state.name}</h1>
      </div>
    );
  }
}

export default page001c01;
